package com.xd.clap.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xd.clap.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdminMapper extends BaseMapper<Admin> {
    @Select("SELECT EXISTS(SELECT 1 FROM admin WHERE phone = #{phone})")
    boolean existsUserByPhone(@Param("phone") String phone);

}
